package com.robot.admin.dao;

import com.robot.admin.pojo.Province;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;

/**
 * province数据访问接口
 *
 * @author lin
 */
public interface ProvinceDao extends JpaRepository<Province, String>, JpaSpecificationExecutor<Province> {
    /**
     * 根据code查找province
     *
     * @param code
     * @return
     */
    public Province findByCode(String code);

    /**
     * 根据name查找province
     *
     * @param name
     * @return
     */
    public Province findByName(String name);
}
